package ua.com.alus.resvac.crm.services.spring.security;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.GrantedAuthorityImpl;
import ua.com.alus.resvac.crm.domen.prototype.AccountType;

/**
 * SecurityUtils
 * <p/>
 * Created by Usatov Alexey
 */
public class SecurityUtils {
    public static final GrantedAuthority ROLE_USER_AUTH = new GrantedAuthorityImpl("ROLE_USER");
    public static final GrantedAuthority RESUME = new GrantedAuthorityImpl(AccountType.ROLE_RESUME.name());
    public static final GrantedAuthority VACANCY = new GrantedAuthorityImpl(AccountType.ROLE_VACANCY.name());
}
